cmake_minimum_required(VERSION 3.10)

# 
project(project_name VERSION 1.0 LANGUAGES CXX)

# 
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_C_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

# 可执行文件
include_directories(
    include
)

# 
add_executable(serial_logger 
    ./src/serial_logger.cpp
)

target_link_libraries(serial_logger 
    serialib
)

# 
add_executable(serial_logger2 
    ./src/serial_logger2.cpp
)

target_link_libraries(serial_logger2 
    serialib
)

# 
add_executable(serial_player 
    ./src/serial_player.cpp
)

target_link_libraries(serial_player 
    serialib
)

# 
add_executable(serial_player2
    ./src/serial_player2.cpp
)

target_link_libraries(serial_player2 
    serialib
)